package com.saas.after.job.entity;

import com.saas.after.job.config.Comment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Classname OrgInfo
 * @Description TODO
 * @Date 2021/8/17 14:30
 * @Created by hjchen
 */

@Data
@Entity
@Table(name = "t_org_info")
@Comment("组织信息")
@EqualsAndHashCode(callSuper = true)
public class OrgInfo extends BaseEntity {

    @Column(length = 50)
    @Comment("授权编码")
    private String authCode;

    @Column(length = 50)
    @Comment("分公司组织编码")
    private String branchOrgCode;

    @Column(length = 50)
    @Comment("分公司名称")
    private String branchOrgName;

    @Column(length = 50)
    @Comment("办事处组织编码")
    private String agencyOrgCode;

    @Column(length = 50)
    @Comment("办事处名称")
    private String agencyOrgName;

    @Column(columnDefinition = "int(2) DEFAULT 30 COMMENT '状态 30 已⽣效、 31 已封存、 32 ⽆效'")
    private Integer state;

}